/**
 * 
 */
package org.gaming.common.service;

import org.gaming.db.annotation.Column;
import org.gaming.db.annotation.MappedSuperclass;
import org.gaming.db.annotation.MappedSuperclass.Priority;

/**
 * @author YY
 *
 */
@MappedSuperclass(sort = Priority._2)
public abstract class PlayerOneToManyEntity extends OneToManyEntity {
	@Column(name = "player_id", comment = "玩家ID", readonly = true)
	protected long playerId;
	@Column(name = "db_zone", comment = "数据库分库编号", readonly = true)
	protected int dbZone;

	public int getDbZone() {
		return dbZone;
	}

	public void setDbZone(int dbZone) {
		this.dbZone = dbZone;
	}

	public long getPlayerId() {
		return playerId;
	}

	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}

	@Override
	public Long redisOwnerKey() {
		return playerId;
	}
}
